
package com.seekting.gongzhu.sdk.gson;

public class Card extends AJson {

    private int index;
    private CardNumber number;
    private CardType cardType;

    private boolean showed;

    public Card(CardType type, int number, int index) {

        this.cardType = type;
        this.index = index;
        if (type == CardType.BigKing || type == CardType.SmallKing) {
            return;
        }
        this.number = CardNumber.values()[number - 1];
    }

    public CardType getCardType() {
        return cardType;
    }

    public void setCardType(CardType cardType) {
        this.cardType = cardType;
    }

    public boolean isShowed() {
        return showed;
    }

    public void setShowed(boolean showed) {
        this.showed = showed;
    }

    public CardNumber getNumber() {
        return number;
    }

    public void setNumber(CardNumber number) {
        this.number = number;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return cardType + ":" + number + ":" + index;
    }

   

}
